<template>
    <div class="goodsdesc-container">
        <h3>{{descList.title}}</h3>
        <hr>
        <div class="content" v-html="descList.content"></div>
    </div>
</template>

<script>
import { Toast } from 'mint-ui'
export default {
    data(){
        return{
            id:this.$route.params.id,
            descList:[],
        }
    },
    created(){
        this.getDesc();
    },
    methods:{
        getDesc(){  
            this.$http.get('http://www.liulongbin.top:3005/api/goods/getdesc/'+this.id).then(result=>{
                if(result.body.status === 0){
                    this.descList=result.body.message[0]
                    Toast("成功")
                }
            })
        }
    }
}
</script>

<style scoped>
.goodsdesc-container{
    padding: 4px;
}
.goodsdesc-container h3{
    font-size: 16px;
    color: blue;
    text-align: center;
    margin:15px;
}
.content img {
    width: 100%;
}

</style>
